//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class chanel
	{

		#region "构造方法"
		public chanel()
		{
			m_ele = null;
			m_id = 0;

			m_chanelno = 0;
			m_enable = true;
            m_color = 0;
		}
		#endregion


		#region "私有变量"
		private string m_ele;
		private int m_id;
		private short m_chanelno;
		private bool m_enable;
        private int m_color;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual bool enable {
			get { return m_enable; }
			set { m_enable = value; }
		}
		public virtual string ele {
			get { return m_ele; }
			set { m_ele = value; }
		}
        public virtual int color
        {
            get { return m_color; }
            set { m_color = value; }
        }
		///<summary>
		///
		///</summary>
		public virtual int id {
			get { return m_id; }
			set { m_id = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual short chanelno {
			get { return m_chanelno; }
			set { m_chanelno = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			chanel castObj = (chanel)obj;
			return (castObj != null) && (m_id == castObj.id);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_id.GetHashCode();
			return hash;
		}
		#endregion
	}
}
